package cn.denny.designpattern.proxy;

public class ProxyRequest implements Subject{

	private Subject realSubject ;
	
	public Subject getRealSubject() {
		return realSubject;
	}

	public void setRealSubject(Subject realSubject) {
		this.realSubject = realSubject;
	}

	@Override
	public void request() {
		System.out.println("proxy before");
		realSubject.request();
		System.out.println("proxy after");
	}

}
